import { Field, Int, ObjectType } from "@nestjs/graphql";
import { Student } from "@prisma/client";
import { ProfileEntity } from "./profile.entity";



@ObjectType()
export class StudentEntity implements Student {
    @Field(() => Int)
    id: number;

    @Field()
    num_id: string;

    @Field()
    name: string;

    @Field()
    profile: ProfileEntity
}